package com.first.service;

import com.first.entity.SubjectEntity;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface SubjectService {

    List<SubjectEntity> getSubjectList();

    int updateSubject(@Param("subjectName") String subjectName, @Param("subjectInfo") String subjectInfo, @Param("credit") Integer credit, @Param("id") Integer id);

    int deleteSubject(@Param("id") Integer id);

    int insertSubject(@Param("subjectName") String subjectName,@Param("subjectInfo") String subjectInfo,@Param("credit") Integer credit);

}
